package com.hoapital.outpbillwork.module.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 *
 * </p>
 *
 * @author lvyao
 * @since 2021-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("OUTP_ORDER_DESC_TEMP")
public class OutpOrderDescTemp implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId("PATIENT_ID")
    private String patientId;

    @TableField("OUTP_ID")
    private Integer outpId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("VISIT_DATE")
    private Timestamp visitDate;

    @TableField("VISIT_NO")
    private Integer visitNo;

    @TableField("PRESC_INDICATOR")
    private Integer prescIndicator;

    @TableField("ORDERED_BY_DEPT")
    private String orderedByDept;

    @TableField(exist = false)
    private String orderedByDeptName;

    @TableField("ORDERED_BY_DOCTOR")
    private String orderedByDoctor;

    @TableField("INSUR_CODE")
    private String insurCode;

    @TableField("REFUND_FLAG")
    private String refundFlag;

    @TableField("ORDER_TYPE")
    private String orderType;

    @TableField(exist = false)
    private String orderTypeName;

    @TableField("RCPT_NO")
    private String rcptNo;

    @TableField("OPERATOR_NO")
    private String operatorNo;

    @TableField("CHARGE_FLAG")
    private Integer chargeFlag = 0;
    @TableField(exist = false)
    private String userId;

    @TableField("ORDER_NO")
    private String orderNo;
    @TableField("DOCTOR_ID")
    private String doctorId;
}
